package org.example.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author 李新雨的项目86176
 * @version 1.0
 * @date 2024-11-09 10:29
 */
@Getter
@Setter
@ToString
public class Book {
    private String name;
    private int price;
    //对象的属性
    private User user;
    public Book(){}
    public Book(String name, String author, int price,User user) {
        this.name = name;
        this.price = price;
        this.user=user;
    }


}
